package com.catsic.zcjc.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.catsic.base.BaseService;
import com.catsic.zcjc.condition.MarkLabelCondition;
import com.catsic.zcjc.entity.MarkLabel;
import com.catsic.zcjc.form.MarkLabelForm;

public interface MarkLabelService extends BaseService<MarkLabel,String>{
	/**
	 * 添加
	 * @param form
	 */
	public MarkLabelForm add(MarkLabelForm form);
	
	/**
	 * 更新
	 * @param form
	 */
	public MarkLabelForm update(MarkLabelForm form);
	
	/**
	 * delete:通过id删除
	 * @author yangyd
	 * @param id
	 * @return 
	 */
	public void delete(String id);
	
	/**
	 * 通过Id查询
	 * @param 
	 */
	public MarkLabel findById(String id);

	public MarkLabelForm findMarkLabelById(String id);

	/**
	 * 分页查询标签
	 * @param condition
	 * @param pageable
	 * @return
	 */
	public Page<MarkLabelForm> findAll(MarkLabelCondition condition, Pageable pageable);
	
	public List<MarkLabel> findByUser(String userId);
}
